package com.my.object;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="course_template")
public class CourseTemplate {
	@Id
	@Column(name="id")
	private int id;
	@Column(name="credit")
	private int credit;
	@Column(name="create_datetime")
	private Date create_datetime;
	@Column(name="course_id")
	private int course_id;
	@Column(name="major_id")
	private int major_id;
	@Column(name="academy_year_id")
	private int academy_year_id;
	@Column(name="course_template_type_id")
	private int course_template_type_id;
	@Override
	public String toString() {
		return "Course_template [id=" + id + ", credit=" + credit
				+ ", create_datetime=" + create_datetime + ", course_id="
				+ course_id + ", major_id=" + major_id + ", academy_year_id="
				+ academy_year_id + ", course_template_type_id="
				+ course_template_type_id + "]";
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getCredit() {
		return credit;
	}
	public void setCredit(int credit) {
		this.credit = credit;
	}
	public Date getCreate_datetime() {
		return create_datetime;
	}
	public void setCreate_datetime(Date create_datetime) {
		this.create_datetime = create_datetime;
	}
	public int getCourse_id() {
		return course_id;
	}
	public void setCourse_id(int course_id) {
		this.course_id = course_id;
	}
	public int getMajor_id() {
		return major_id;
	}
	public void setMajor_id(int major_id) {
		this.major_id = major_id;
	}
	public int getAcademy_year_id() {
		return academy_year_id;
	}
	public void setAcademy_year_id(int academy_year_id) {
		this.academy_year_id = academy_year_id;
	}
	public int getCourse_template_type_id() {
		return course_template_type_id;
	}
	public void setCourse_template_type_id(int course_template_type_id) {
		this.course_template_type_id = course_template_type_id;
	}
}
